{{- partial "header.html" . }}
<div class="article-meta">
<h1 class="title" title="标题">{{ .Title | markdownify }}</h1>
{{ with .Params.subtitle }}<h2 class="subtitle" title="副标题">{{ . }}</h2>{{ end }}
{{- range $i := (slice "author") -}}
  {{- with ($.Param $i) -}}
  {{- range $k := . }}<h2 class="author" title="作者">{{ $k }}</h2>{{ end }}
  {{- end -}}
  {{- end }}
{{ if (gt .Params.date 0) }}<h2 class="date" title="写作时间"><time datetime='{{ .Date.Format "2006-01-02T15:04:05-0700" }}'>{{ .Date.Format "2006-01-02 15:04:05 -0700" }}</time></h2>{{ end }}
{{ if (gt .Params.lastmod 0) }}<h2 class="lastmod" title="修改时间"><time datetime='{{ .Lastmod.Format "2006-01-02T15:04:05-0700" }}'>{{ .Lastmod.Format "2006-01-02 15:04:05 -0700" }}</time></h2>{{ end -}}
<p class="terms">
  {{- range $i := (slice "source") -}}
  {{- with ($.Param $i) -}}
  来源: {{ range $k := . }}<a href="{{ $k }}" target="_blank">链接</a> {{ end }}<br/>
  {{- end -}}
  {{- end -}}
  {{- range $i := (slice "categories") -}}
  {{- with ($.Param $i) }}
  分类: {{ range $k := . }}<a href="{{ relURL (print "/" $i "/" $k | urlize) }}">{{$k}}</a> {{ end }}<br/>
  {{- end -}}
  {{- end -}}
  {{- range $i := (slice "tags") -}}
  {{- with ($.Param $i) }}
  标签: {{ range $k := . }}<a href="{{ relURL (print "/" $i "/" $k | urlize) }}">{{$k}}</a> {{ end -}}
  {{- end -}}
  {{- end }}
</p>
</div>

{{ .TableOfContents }}

<main>
{{ .Content }}
</main>

{{ partial "footer.html" . }}